//
// Created on 6/3/25.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "manipulator.h"

Manipulator::Manipulator() {}
Manipulator::~Manipulator() {}
void Manipulator::handle(std::shared_ptr<Event> event) {}

void Manipulator::handle() {
    
    while(m_vEvents.size()){
        auto event = m_vEvents.front();
        handle(event);
        m_vEvents.erase(m_vEvents.begin());
    }
}
void Manipulator::addEvent(std::shared_ptr<Event> event) {m_vEvents.push_back(event);}
